// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_SEC_ROLE_MENU
// * CreateDate    : 2014-06-05 18:30:41
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:41
// * LastChanger   : 2014-06-05 18:30:41
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class SecRoleMenuEntity : EntityBase
    {
        public SecRoleMenuTable TableSchema
        {
            get
            {
                return SecRoleMenuTable.Current;
            }
		}
		
		public SecRoleMenuEntity()
        {

        }
		
		public SecRoleMenuEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.MenuId = Convert.ToString(CommonFunctions.ToObject(dr["MENU_ID"]));
			this.RoleId = Convert.ToString(CommonFunctions.ToObject(dr["ROLE_ID"]));
        }
		
		public SecRoleMenuEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.MenuId = Convert.ToString(CommonFunctions.ToObject(dr["MENU_ID"]));
			this.RoleId = Convert.ToString(CommonFunctions.ToObject(dr["ROLE_ID"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return SecRoleMenuTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public string MenuId
        {
            get { return Convert.ToString(GetData(SecRoleMenuTable.C_MENU_ID)); }
            set { SetData(SecRoleMenuTable.C_MENU_ID, value); }
        }
		
        [DataMember]
        public string RoleId
        {
            get { return Convert.ToString(GetData(SecRoleMenuTable.C_ROLE_ID)); }
            set { SetData(SecRoleMenuTable.C_ROLE_ID, value); }
        }
		
		#endregion
	}
	
	
}	

